package app.modules.menu.dto.web.menu;

import io.swagger.v3.oas.annotations.media.Schema;

import java.util.List;

/**
 * @author mh.z
 */
@Schema(title = "菜单DTO")
public class WebHomeMenuDTO {

    @Schema(title = "代码")
    private String code;

    @Schema(title = "名称")
    private String name;

    @Schema(title = "路径")
    private String path;

    @Schema(title = "图标")
    private String icon;

    @Schema(title = "子菜单")
    private List<WebHomeMenuDTO> children;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public List<WebHomeMenuDTO> getChildren() {
        return children;
    }

    public void setChildren(List<WebHomeMenuDTO> children) {
        this.children = children;
    }
}
